import request from '@/utils/request'

/**
 * 获取规则列表列表
 */
export function getRuleBaseList (data) {
    return request({
        url: '/MRMS/Api/RuleBase/GetPage',
        method: 'post',
        data
    })
}

/**
 * 还原
 */
export function reductionData (data) {
    return request({
        url: `/MRMS/Api/RuleBase/ChangeState?id=${data.id}`,
        method: 'get',
        data
    })
}

/**
 * 上传
 */
export function uploadRuleBase (data) {
    return request({
        url: '/MRMS/Api/RuleBase/Import',
        method: 'post',
        data,
        headers: {'Content-Type': 'multipart/form-data'}
    })
}
